package com.hnas.common.domain;

import java.util.HashMap;
import java.util.Map;

public class CardTypeConstants {

	public static final String HH_EMPLOYEE = "1";
	public static final String NOT_HH_EMPLOYEE = "2";
	public static final String LABOR_EMPLOYEE = "3";
	public static final String GENRA_EMPLOYEE = "4";
	
	private static Map<String, String> map = new HashMap<String, String>();
	private static Map<String, String> map1 = new HashMap<String, String>();
	
	static {
		map.put(HH_EMPLOYEE, "海航员工");
		map.put(NOT_HH_EMPLOYEE, "非海航员工");
		map.put(LABOR_EMPLOYEE, "劳务派遣");
		map.put(GENRA_EMPLOYEE, "普通员工");
		map1.put(HH_EMPLOYEE, "1");
		map1.put(NOT_HH_EMPLOYEE, "2");
		map1.put(LABOR_EMPLOYEE, "3");
		map1.put(GENRA_EMPLOYEE, "4");
	}
	
	public static Map<String, String> getMap(){
		return map;
	}
	
	public static String getValue(String key){
		return map.get(key)==null?GENRA_EMPLOYEE:map.get(key);
	}
	
	public static String getValue1(String key){
		return map1.get(key)==null?GENRA_EMPLOYEE:map1.get(key);
	}
	
	public static void main(String[] args) {
		System.out.println("saasa"+CardTypeConstants.getValue("1"));
	}
}
